#ifndef EDUMYGUI_H
#define EDUMYGUI_H

#include <QMainWindow>
#include <ui_esnapgrid.h>
#include <ui_mohrgui.h>
class HEDController;
class MohrGui;
/*#include <ui_attributes.h>
class AttribManager;
*/

namespace Ui {
    class EduMyGUI;
}

class EduMyGUI : public QMainWindow
{
    Q_OBJECT

public:
    explicit EduMyGUI(QWidget *parent = 0);
    ~EduMyGUI();
    Ui::EduMyGUI* getMyUI() { return ui;};
	void createRegion(int _numRegion);
  void setPropertyRegion( double _area, double _xc, double _yc,
                          double& _Ixx,  double& _Iyy,  double& _Ixy,
                          double& _Ixxc, double& _Iyyc, double& _Ixyc );
public slots:
  void selectionRegion();


private:
    Ui::EduMyGUI *ui;
    Ui::GridDialog edum_gridDlg; 
    QDialog *edum_gridDialog;
	Ui::MohrGui *test;
	MohrGui *mohrgui;
	double mIxc,mIyc,mIxyc,mxc,myc;
    //QDialog *testDialog;
  /*  Ui::AttributeDialog m_attrDlg; 
    QDialog *m_attrDialog;
    AttribManager* m_attribManager;*/

 private slots:
  void on_actionSelect_triggered();
  void on_actionMove_triggered();
  void on_actionGrid_triggered();
  void on_actionZoom_triggered();
  void on_actionAddVertice_triggered();
  void on_actionAddCurve_triggered();
  void on_actionUndo_triggered();
  void on_actionRedo_triggered();
  //void on_actionDist_triggered();
	void on_actionMohr_triggered();
/*void on_actionOpen_triggered();
  void on_actionSave_triggered();
  void on_actionVertex_triggered();
  void on_actionEdge_triggered();
  void on_actionFace_triggered();
  void on_actionAttributes_triggered();
  void on_actionToolButton_1_triggered();
  void on_actionToolButton_2_triggered();
  void on_actionToolButton_3_triggered();
  void on_actionToolButton_4_triggered();
  void on_actionToolButton_5_triggered();
  void on_actionToolButton_6_triggered();
  void on_actionToolButton_7_triggered();
  void on_actionToolButton_8_triggered();
  void on_actionToolButton_9_triggered();
  void on_actionToolButton_10_triggered();
  void on_actionToolButton_11_triggered();
  void on_actionToolButton_12_triggered();
  void on_actionToolButton_13_triggered();
  void applyAttributeClicked();
  void removeAttributeClicked();
  void cancelAttributeClicked();
  void createAttributeClicked();
  void displayAttribProperties();
  void updateAttributeValues(int _r,int _c);
  void updateAtribSymbolSize(int _s);
  */
};

#endif // EDUMYGUI_H
